package entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

@Entity
public class UserCheck implements Serializable{
	private static final long serialVersionUID = 2L;
	
	@EmbeddedId
	private UserCheckID ucid;
	@Column(name="PASSWORD", length=50, nullable=false)
	private String password;
	@OneToOne(mappedBy="usercheck")
	private Service service;
	
	public UserCheck(){
		
	}

	public UserCheckID getUcid() {
		return ucid;
	}

	public void setUcid(UserCheckID ucid) {
		this.ucid = ucid;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Service getService() {
		return service;
	}

	public void setService(Service service) {
		this.service = service;
	}
}
